#include "junix.h"
using namespace std;

struct B
{
	void f()
	{
		cout<<"b::f()"<<endl;
	}
};

struct D:B
{
	void f(int i)
	{
		cout<<"D::f(int i)"<<endl;
	}

};

int main(int argc, char **argv)
{
	B* pb =new D;
	pb->f();
//	pb->f(9); //error
}
